﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ecdl.demo.model {
    public interface IVolumeProvider {
        void Initialize();
        void Close();
        
        string GetPath();
        string GetFullPath(string fileName);
    }

    public abstract class VolumeProvider : IVolumeProvider{
        public virtual void Initialize() {}

        public virtual void Close() { }

        public abstract string GetPath();

        public virtual string GetFullPath(string fileName) {
            return System.IO.Path.Combine(GetPath(), fileName);
        }
    }
}
